package com.banma.web.config;

import org.springframework.scheduling.annotation.Scheduled;

/**
 *
 *  定时器配置
 * <pre>
 * Pattern : Value Object
 * Thread Safe : No
 *
 * Change History
 *
 * Name                 Date                    Description
 * -------              -------                 -----------------
 * Banma              2016-10-18            Create the class
 *
 * </pre>
 *
 * @author Banma
 * @version 1.0
 */
//@Configuration
//@EnableScheduling
public class SchedulingConfig {

    @Scheduled(cron = "0/20 * * * * ?") // 每20秒执行一次
    public  void scheduler() {
        System.out.println(">>>>>>>>> SchedulingConfig.scheduler()");

    }
}
